//
//  THCrashManager.m
//  MengLiao
//
//  Created by xiuxin on 2022/7/14.
//  Copyright © 2022 BaseBusiness. All rights reserved.
//

#import "THCrashManager.h"
//#import "THBuglyManager.h"
@implementation THCrashManager

+ (THCrashManager*)shareInstance{
    static dispatch_once_t onceToken;
    static THCrashManager *_shareInstance = nil;
    dispatch_once(&onceToken, ^{
        _shareInstance = [[THCrashManager alloc] init];
    });
    return _shareInstance;
}
/**向后台传递错误*/
- (void)reportError:(NSError*)error{
//    [[THBuglyManager shareManager] reportError:error];
    
    if([_delegate respondsToSelector:@selector(reportError:)])
    {
        [_delegate reportError:error];
    }
    
}
/**向后台传递异常*/
- (void)reportExp:(NSException*)exception{
//  [[THBuglyManager shareManager] reportExp:exception];
    if([_delegate respondsToSelector:@selector(reportExp:)])
    {
        [_delegate reportExp:exception];
    }
}

@end
